/**
 * 公用参数
 */
var current='';//当前界面进入



/**
 * 默认加载
 * @type {{init: Window.process.init, public: Window.process.public}}
 */
window.process = {
    init: function () {
        this.initData();
        this.public();
    },
    initData:function () {
        var paramsData = getUrlParamsCode();
        current= paramsData['current'];

    },
    public: function () {
       //添加就诊人
        $('#edit').click(function () {
            window.location.href='visiter_add.html';

        });
        //进入详情
        $('.list .item').click(function () {
            var name=$(this).attr('data-name');
            if(current=='payment') {
                window.location.href='payment.html?name='+name;
            }else{
                window.location.href='make_detail.html?name='+name;
            }
        });

    }
};

/**
 * 启动方法执行
 */
process.init();



